{% extends "common.html" %}
{% block css %}
<link href="/static/css/reset_menu.css" rel="stylesheet" type="text/css">
<link href="/static/css/style-static.css" rel="stylesheet" type="text/css">
<link href="/static/css/bootstrap.css" rel="stylesheet" type="text/css">
<style type="text/css">
  .blue{
    background:#31d2e7;
    color: white;
  }
</style>
{% load i18n %}
<script src="/static/js/laydate.js"></script>
 <script type="text/javascript" charset="utf-8" src="/static/js/ueditor.config.js"></script>
 <script type="text/javascript" charset="utf-8" src="/static/js/ueditor.all.min.js"> </script>

{% endblock %}
{% block content %}

<!--------内容-------------->
<div class="edititem">
    {% include "side.html" %}

  <div class="enterprise">
    <form method="post" action="{% url "collect" %}">
    
     <h2><span></span>基本信息</h2>
     <div class="form-horizontal text-left">
      <div class="form-group">
        <label  class="col-sm-2 control-label">url:</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" name="url" value="">
        </div>
      </div>

     <div class="form-group">
      <label class="col-sm-2 control-label">分类{{articleType}}:</label>

       <div class="col-sm-2" id="">
       <select class="form-control" name="type">
       {% for x,y in type %}
         <option value="{{x}}" {% if articleType == x %}
             
         selected="true" 
         {% endif %}>{% trans y %}</option>
       {% endfor %}
        
         
       </select>
       </div>
     

       

      </div> 
      



    <div class="form-group">
        <label  class="col-sm-2 control-label"></label>
        <div class="col-sm-2">
           <input class="btn btn-default blue col-sm-10"  type="submit" value="提交">

        </div>
      </div>

    </div>
   
    

 
 {% csrf_token %}




</form>
<form id="logoForm" action="{% url "upload" %}" method="post" enctype="multipart/form-data">
   <input style="display:none" type="file" id="logo" name="file" onchange="uploadImage('logo')">
 
 {% csrf_token %}
</form>
</div>

</div>              
<script src="/static/js/jquery.form.min.js"></script>


{% endblock %}  
